package io.itit.ecp.admin.server.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.itit.grass.common.server.entity.BaseTenantEntity;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警管理
 * @Date：Create by 2023-12-15 11:20:26
 */
@Data
@ToString
@TableName("ecp_tt_early_warning_record")
public class EarlyWarningRecordEntity extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;

    /* 预警Id */
    private String earlyWarningId;

    /* 预警名称 */
    private String warningName;

    /* 预警类型(1:设备计量预警,2:碳排放预警) */
    private String warningType;

    /* 项目Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneProjectId;

    /* 楼栋Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneEdificeId;

    /* 楼层Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneFloorId;

    /* 空间Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneRoomId;

    /* 公司Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneCompanyId;

    /* 计量设备Id */
    private String meterDeviceId;

    /* 能源类型Id */
    private String energyTypeId;

    /* 计量条件(1:按时计量,2:按日计量,3:按月计量) */
    private String meterCondition;

    /* 推送规则(1:实时推送,2:一天一次,3:一天两次,4:一天三次) */
    private String pushRule;

    /* 判断规则(1:大于等于,2:小于等于) */
    private String judgeRule;

    /* 计量数值 */
    private BigDecimal meterValue;

    /* 阈值数值 */
    private BigDecimal thresholdValue;

    /* 阈值数值单位 */
    private String thresholdUnit;

    /* 预警级别(1:(一级)红色预警,2:(二级)橙色预警,3:(三级)黄色预警) */
    private String thresholdLevel;

    /* 状态(1:未读,2:部分已读,3:全部已读) */
    private String status;

    /* 机构Id */
    private String deptId;

}